package com.hospital.hospitalsystem.modules.hospital.service;

import com.hospital.hospitalsystem.modules.hospital.dao.entity.QuartzCronEntity;
import com.hospital.hospitalsystem.modules.hospital.dao.mapper.QuartzCronMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2023/2/23
 */
@Component
public class QuartzCronService {

    @Autowired
    private QuartzCronMapper quartzCronMapper;

    public QuartzCronEntity selectByPrimaryKey(Long id){
        return quartzCronMapper.selectByPrimaryKey(id);
    }

    public void insertSelective(QuartzCronEntity quartzCronEntity) {
        quartzCronMapper.insertSelective(quartzCronEntity);
    }

    public List<QuartzCronEntity> selectByExample(Example example) {
        return quartzCronMapper.selectByExample(example);
    }

    public void updateByExampleSelective(QuartzCronEntity quartzCronEntity, Example example) {
        quartzCronMapper.updateByExampleSelective(quartzCronEntity,example);
    }
}
